package com.clw.service;

import com.clw.dataobject.Sale;
import com.clw.dataobject.SaleDetail;
import com.clw.dto.SaleDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2018-03-01.
 */
public interface SaleService {
    Page<Sale> findPage(String saleNo, String buyerId, String startTime, String endTime, Pageable pageable);

    Long getSize(String saleNo, String buyerId, String startTime, String endTime);

    List<SaleDetail> getDetail(String saleNo);

    Sale findOne(Integer id);

    SaleDTO add(SaleDTO dto);

    SaleDTO update(SaleDTO dto);

    Sale del(Sale sale);

    Sale save(Sale order);

    Sale review(Sale order);

    List<Sale> getAllFinishOrder();
}
